import type { RouteRecordRaw } from 'vue-router'
import Home from '@/views/home/index.vue'
import Layout from '@/views/layout/index.vue'

export const homeModules: RouteRecordRaw = {
  path: '/',
  name: 'homeLayout',
  component: Layout,
  redirect: '/home',
  meta: {
    title: '首页'
  },
  children: [
    {
      path: '/home',
      name: 'home',
      component: Home,
      meta: {
        title: '首页',
        keepAlive: true
      }
    }
  ]
}
